Carbon


SubPt

Header: Quickdraw.h Carbon status: Supported

Subtracts the coordinates of one point from another.

void SubPt (
    Point src, 
    Point *dst
);
src

A point, the coordinates of which are to be subtracted from those specified in the dstPt parameter.

dst

A pointer to a point. On return, this value contains the result of subtracting the coordinates of the point in the srcPt parameter from the coordinates of the point you supplied in the dstPt parameter.

DISCUSSION

To get the results of coordinate subtraction returned as a function result, you can instead use the DeltaPoint function. Note, however, that the parameters in these two functions are reversed.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)